package com.xqboss.chain.task;

import com.xqboss.chain.service.UpUpdateChainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *
 */
@Component("upChainTask")
public class UpChainTask {

    @Autowired
    UpUpdateChainService upUpdateChainService;

    /**
     * 每3分钟自动上链
     */
    public void upchain() {
        upUpdateChainService.autoUpChain();
    }
}